package com.wwcom.darteagle.data;

import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;

public class DataObject {
    protected SQLiteDatabase database;

    public DataObject(SQLiteDatabase database) {
    	this.database= database;
    }
    	
    protected String escapeNoQuotes(String val) {
    	String escapedVal= DatabaseUtils.sqlEscapeString(val);
    	if (escapedVal.startsWith("'") ) {
    		escapedVal= escapedVal.substring(1, escapedVal.length());
    	}
    	if (escapedVal.endsWith("'") ) {
    		escapedVal= escapedVal.substring(0, escapedVal.length()-1);
    	}
    	return escapedVal;
    }
}
